import request from '@/utils/request'
// 封装登入接口
export function login(data) {
  return request({
    url: '/user/admin/login',
    method: 'post',
    data: data
  })
}

// 封装获取管理员信息接口
export function getUserInfo() {
  return request({
    url: '/user/admin/info',
    method: 'post'
  })
}
// 获取权限菜单
export function getMenuList(data) {
  return request({
    url: '/menu/list',
    params: data
  })
}
// 新增修改权限
export function addMenu(data) {
  return request({
    url: '/menu/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除权限
export function delMenu(data) {
  return request({
    url: '/menu/del',
    method: 'post',
    data: data
  })
}
// 设置语言环境
export function setLanguage(data) {
  return request({
    url: '/user/admin/set_language',
    method: 'post',
    data: data
  })
}

// 获取角色列表
export function getGroupAdminList(data) {
  return request({
    url: '/user/group/list',
    method: 'post',
    data: data
  })
}
// 新增修改角色
export function addGroupAdmin(data) {
  return request({
    url: '/user/group/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除角色
export function delGroupAdmin(data) {
  return request({
    url: '/user/group/del',
    method: 'post',
    data: data
  })
}
// 权限新增
export function addRole(data) {
  return request({
    url: '/admin/rolt/edit_or_add',
    method: 'post',
    data: data
  })
}
// 获取管理员列表
export function getUserAdminList(data) {
  return request({
    url: '/user/user_admin/list',
    method: 'post',
    data: data
  })
}
// 新增修改管理员
export function addUserAdmin(data) {
  return request({
    url: '/user/user_admin/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除管理员
export function delUserAdmin(data) {
  return request({
    url: '/user/user_admin/del',
    method: 'post',
    data: data
  })
}
// 获取角色列表
export function getAdminGroupList(data) {
  return request({
    url: '/user/group/list',
    method: 'post',
    data: data
  })
}
// 请求上传图片
export function UploadFile(file) {
  return request({
    url: '/admin/aliyun/upload',
    method: 'post',
    data: file,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 获取会员等级
export function getLevelList(data) {
  return request({
    url: '/admin/level/list',
    method: 'post',
    data: data
  })
}
// 会员等级排序
export function sortLevel(data) {
  return request({
    url: '/admin/level/Sort',
    method: 'post',
    data: data
  })
}
// 新增/修改会员等级
export function addLevel(data) {
  return request({
    url: '/admin/level/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除会员等级
export function delLevel(data) {
  return request({
    url: '/admin/level/del',
    method: 'post',
    data: data
  })
}
// 获取操作日志
export function getJournal(data) {
  return request({
    url: '/admin/journal/list',
    method: 'post',
    data: data
  })
}
// 获取会员列表
export function getMemberList(data) {
  return request({
    url: '/admin/member/list',
    method: 'post',
    data: data
  })
}
// 修改会员
export function addMember(data) {
  return request({
    url: '/admin/member/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除会员
export function delMember(data) {
  return request({
    url: '/admin/member/del',
    method: 'post',
    data: data
  })
}
// 获取banner
export function getBanner(data) {
  return request({
    url: '/admin/banner/list',
    method: 'post',
    data: data
  })
}
// 修改banner
export function addBanner(data) {
  return request({
    url: '/admin/banner/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除banner
export function delBanner(data) {
  return request({
    url: '/admin/banner/del',
    method: 'post',
    data: data
  })
}
// 修改banner图片
export function editBanner(data) {
  return request({
    url: '/admin/banner/edit',
    method: 'post',
    data: data
  })
}

// 获取banner
export function getAppPage(data) {
  return request({
    url: '/admin/appPage/list',
    method: 'post',
    data: data
  })
}
// 获取金刚区
export function getJinGangList(data) {
  return request({
    url: '/admin/jinGang/list',
    method: 'post',
    data: data
  })
}
// 金刚区排序
export function sortJinGang(data) {
  return request({
    url: '/admin/jinGang/Sort',
    method: 'post',
    data: data
  })
}
// 新增/修改金刚区
export function addJinGang(data) {
  return request({
    url: '/admin/jinGang/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除金刚区
export function delJinGang(data) {
  return request({
    url: '/admin/jinGang/del',
    method: 'post',
    data: data
  })
}
// 获取系统基本设置
export function GetAdminSet(data) {
  return request({
    url: '/admin/admin_set/info',
    method: 'post',
    data: data
  })
}
// 设置基础信息
export function EditAdminSet(data) {
  return request({
    url: '/admin/admin_set/edit',
    method: 'post',
    data: data
  })
}

// 获取金刚区栏目
export function getJinGangCateList(data) {
  return request({
    url: '/admin/jinGangCate/list',
    method: 'post',
    data: data
  })
}
// 新增/修改金刚区栏目
export function addJinGangCate(data) {
  return request({
    url: '/admin/jinGangCate/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除金刚区栏目
export function delJinGangCate(data) {
  return request({
    url: '/admin/jinGangCate/del',
    method: 'post',
    data: data
  })
}

// 获取分类
export function getShopCateList(data) {
  return request({
    url: '/admin/shopCate/list',
    method: 'post',
    data: data
  })
}
// 分类排序
export function sortCate(data) {
  return request({
    url: '/admin/shopCate/Sort',
    method: 'post',
    data: data
  })
}
// 新增/修改商品分类
export function addShopCate(data) {
  return request({
    url: '/admin/shopCate/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除商品分类
export function delShopCate(data) {
  return request({
    url: '/admin/shopCate/del',
    method: 'post',
    data: data
  })
}

// 获取分组
export function getShopGroupList(data) {
  return request({
    url: '/admin/shopGroup/list',
    method: 'post',
    data: data
  })
}
// 分组排序
export function sortGroup(data) {
  return request({
    url: '/admin/shopGroup/Sort',
    method: 'post',
    data: data
  })
}
// 新增/修改商品分组
export function addShopGroup(data) {
  return request({
    url: '/admin/shopGroup/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除商品分组
export function delShopGroup(data) {
  return request({
    url: '/admin/shopGroup/del',
    method: 'post',
    data: data
  })
}
// 获取商品
export function getShopProduct(data) {
  return request({
    url: '/admin/shopProduct/list',
    method: 'post',
    data: data
  })
}
// 商品排序
export function sortShopProduct(data) {
  return request({
    url: '/admin/shopProduct/Sort',
    method: 'post',
    data: data
  })
}
// 新增/修改商品
export function addShopProduct(data) {
  return request({
    url: '/admin/shopProduct/add_or_edit',
    method: 'post',
    data: data
  })
}
// 批量删除商品
export function delShopProduct(data) {
  return request({
    url: '/admin/shopProduct/del',
    method: 'post',
    data: data
  })
}
// 批量商品上下架
export function ShopProductStatus(data) {
  return request({
    url: '/admin/shopProduct/status',
    method: 'post',
    data: data
  })
}

// 获取物流模版
export function getFreightList(data) {
  return request({
    url: '/admin/freight/list',
    method: 'post',
    data: data
  })
}
// 物流模版排序
export function sortFreight(data) {
  return request({
    url: '/admin/freight/Sort',
    method: 'post',
    data: data
  })
}
// 新增/修改物流模版
export function addFreight(data) {
  return request({
    url: '/admin/freight/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除物流模版
export function delFreight(data) {
  return request({
    url: '/admin/freight/del',
    method: 'post',
    data: data
  })
}

// 获取服务区域
export function getRegionList(data) {
  return request({
    url: '/admin/region/list',
    method: 'post',
    data: data
  })
}
// 服务区域排序
export function sortRegion(data) {
  return request({
    url: '/admin/region/Sort',
    method: 'post',
    data: data
  })
}
// 新增/修改服务区域
export function addRegion(data) {
  return request({
    url: '/admin/region/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除服务区域
export function delRegion(data) {
  return request({
    url: '/admin/region/del',
    method: 'post',
    data: data
  })
}

// 获取服务区域
export function getCityList(data) {
  return request({
    url: '/admin/city/list',
    method: 'post',
    data: data
  })
}
// 新增/修改服务区域
export function addCity(data) {
  return request({
    url: '/admin/city/add_or_edit',
    method: 'post',
    data: data
  })
}
// 新增/修改服务区域
export function CityEdit(data) {
  return request({
    url: '/admin/city/edit',
    method: 'post',
    data: data
  })
}
// 获取热门搜索
export function HotSearchList(data) {
  return request({
    url: '/admin/hot_search/list',
    method: 'post',
    data: data
  })
}
// 新增/修改热门搜索
export function addHotSearch(data) {
  return request({
    url: '/admin/hot_search/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除热门搜索
export function HotSearchDel(data) {
  return request({
    url: '/admin/hot_search/del',
    method: 'post',
    data: data
  })
}
// 获取文章分类
export function getArticleCateList(data) {
  return request({
    url: '/admin/article/list',
    method: 'post',
    data: data
  })
}
// 文章分类排序
export function sortArticleCate(data) {
  return request({
    url: '/admin/article/Sort',
    method: 'post',
    data: data
  })
}
// 新增/修改文章分类
export function addArticleCate(data) {
  return request({
    url: '/admin/article/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除文章分类
export function delArticleCate(data) {
  return request({
    url: '/admin/article/del',
    method: 'post',
    data: data
  })
}

// 获取文章
export function getArticleList(data) {
  return request({
    url: '/admin/articleContent/list',
    method: 'post',
    data: data
  })
}
// 文章排序
export function sortArticle(data) {
  return request({
    url: '/admin/articleContent/Sort',
    method: 'post',
    data: data
  })
}
// 新增/修改文章
export function addArticle(data) {
  return request({
    url: '/admin/articleContent/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除文章
export function delArticle(data) {
  return request({
    url: '/admin/articleContent/del',
    method: 'post',
    data: data
  })
}

// 获取支付设置
export function PaySetList(data) {
  return request({
    url: '/admin/pay_set/list',
    method: 'post',
    data: data
  })
}
// 新增/修改支付设置
export function PaySetAdd(data) {
  return request({
    url: '/admin/pay_set/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除支付设置
export function PaySetDel(data) {
  return request({
    url: '/admin/pay_set/del',
    method: 'post',
    data: data
  })
}
// 获取充值赠送
export function RechargeList(data) {
  return request({
    url: '/admin/recharge_set/info',
    method: 'post',
    data: data
  })
}
// 设置充值赠送
export function RechargeAdd(data) {
  return request({
    url: '/admin/recharge_set/edit',
    method: 'post',
    data: data
  })
}

// 获取服务项目
export function FuShopList(data) {
  return request({
    url: '/admin/fu_shop/list',
    method: 'post',
    data: data
  })
}
// 新增/修改服务项目
export function FuShopAdd(data) {
  return request({
    url: '/admin/fu_shop/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除服务项目
export function FuShopDel(data) {
  return request({
    url: '/admin/fu_shop/del',
    method: 'post',
    data: data
  })
}
// 服务商品list
export function GetFuwuProduct(data) {
  return request({
    url: '/admin/fuwu_Product/list',
    method: 'post',
    data: data
  })
}
// 新增/修改服务商品
export function AddFuProduc(data) {
  return request({
    url: '/admin/fuwu_Product/add_or_edit',
    method: 'post',
    data: data
  })
}
// 服务商品排序
export function FuProducSort(data) {
  return request({
    url: '/admin/fuwu_Product/Sort',
    method: 'post',
    data: data
  })
}
// 批量删除服务商品
export function FuProducDel(data) {
  return request({
    url: '/admin/fuwu_Product/del',
    method: 'post',
    data: data
  })
}
// 批量服务商品上下架
export function FuProducStatus(data) {
  return request({
    url: '/admin/fuwu_Product/status',
    method: 'post',
    data: data
  })
}
// 获取充值卡
export function RechargeExchangeList(data) {
  return request({
    url: '/admin/recharge_exchange/list',
    method: 'post',
    data: data
  })
}
// 新增/修改充值卡
export function RechargeExchangeAdd(data) {
  return request({
    url: '/admin/recharge_exchange/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除充值卡
export function RechargeExchangeDel(data) {
  return request({
    url: '/admin/recharge_exchange/del',
    method: 'post',
    data: data
  })
}
// 获取优惠券
export function CouponList(data) {
  return request({
    url: '/admin/coupon/list',
    method: 'post',
    data: data
  })
}
// 新增/修改优惠券
export function CouponAdd(data) {
  return request({
    url: '/admin/coupon/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除优惠券
export function CouponDel(data) {
  return request({
    url: '/admin/coupon/del',
    method: 'post',
    data: data
  })
}
// 获取注册赠送
export function GetRegisterGiveset(data) {
  return request({
    url: '/admin/register_giveset/info',
    method: 'post',
    data: data
  })
}
// 设置注册赠送
export function EditRegisterGiveset(data) {
  return request({
    url: '/admin/register_giveset/edit',
    method: 'post',
    data: data
  })
}
// 获取服务订单列表
export function GetFuOrderList(data) {
  return request({
    url: '/admin/fu_order/list',
    method: 'post',
    data: data
  })
}
// 修改订单备注
export function EditFuOrderRemark(data) {
  return request({
    url: '/admin/fu_order/edit',
    method: 'post',
    data: data
  })
}
// 获取捐助记录
export function JuanzengList(data) {
  return request({
    url: '/admin/juan/list',
    method: 'post',
    data: data
  })
}
// 批量修改颁发证书
export function JuanType(data) {
  return request({
    url: '/admin/juan/edit',
    method: 'post',
    data: data
  })
}
// 获取预约单
export function GetFuYue(data) {
  return request({
    url: '/admin/yuyue/list',
    method: 'post',
    data: data
  })
}
// 派单
export function PaiDan(data) {
  return request({
    url: '/admin/yuyue/edit',
    method: 'post',
    data: data
  })
}
// 批量完成预约
export function EngYeYue(data) {
  return request({
    url: '/admin/yuyue/engOrder',
    method: 'post',
    data: data
  })
}
// 商户分类list
export function getBusinessCate(data) {
  return request({
    url: '/admin/business/cate/list',
    method: 'post',
    data: data
  })
}
// 商户分类新增or修改
export function addBusinessCate(data) {
  return request({
    url: '/admin/business/cate/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除商户分类
export function delBusinessCate(data) {
  return request({
    url: '/admin/business/cate/del',
    method: 'post',
    data: data
  })
}
// 绑定商品分类
export function ShopCateBinding(data) {
  return request({
    url: '/admin/business/cate/ShopCate',
    method: 'post',
    data: data
  })
}
// 商户获取列表
export function getBusiness(data) {
  return request({
    url: '/admin/business/list',
    method: 'post',
    data: data
  })
}
// 商户新增or修改
export function addBusiness(data) {
  return request({
    url: '/admin/business/add_or_edit',
    method: 'post',
    data: data
  })
}
// 删除商户
export function delBusiness(data) {
  return request({
    url: '/admin/business/del',
    method: 'post',
    data: data
  })
}
// 暂停营业
export function stopBusiness(data) {
  return request({
    url: '/admin/business/stop',
    method: 'post',
    data: data
  })
}

// 获取意见列表
export function OpinionList(data) {
  return request({
    url: '/admin/opinion/list',
    method: 'post',
    data: data
  })
}
// 修改意见
export function OpinionEdit(data) {
  return request({
    url: '/admin/opinion/add_or_edit',
    method: 'post',
    data: data
  })
}

// 获取短信模版
export function SmsModelList(data) {
  return request({
    url: '/admin/sms_model/list',
    method: 'post',
    data: data
  })
}
// 修改短信模版
export function SmsModelAdd(data) {
  return request({
    url: '/admin/sms_model/add_or_edit',
    method: 'post',
    data: data
  })
}
